# -*- coding: utf-8 -*-
# FileName: filters.py
# Create by Hardy on 2020/07/22
# Description:

import django_filters
from snippets.models import Snippet


class SnippetFilter(django_filters.FilterSet):
    class Meta:
        model = Snippet
        fields = {
            'title': ['icontains', ],
            'language': ['icontains', ],
            'style': ['icontains', ],
        }
